﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Imaging;

namespace MineSweeperBot
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            ScreenShot.ScreenCapture SC = new ScreenShot.ScreenCapture();
            var Handle = SC.GetWindowHandle("winmine");
            Image tempImage = SC.CaptureWindow(Handle);
            pictureBox1.Image = tempImage;
            PixelPharser.FillPixelArray(tempImage);
            PixelPharser.ClickTile(Handle);
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }
    }
}
